﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Simple.Repository.Migrations
{
    public partial class _50 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "ClassId",
                table: "PlanDayRecipes");

            migrationBuilder.RenameColumn(
                name: "Data",
                table: "PlanDayRecipes",
                newName: "Date");
            migrationBuilder.AddColumn<int>(
                name: "HowManyTimes",
                table: "ParentChildTasksRecord",
                type: "int",
                nullable: true,
                comment: "第几次打卡");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.RenameColumn(
                name: "Date",
                table: "PlanDayRecipes",
                newName: "Data");

            migrationBuilder.AddColumn<Guid>(
                name: "ClassId",
                table: "PlanDayRecipes",
                type: "char(36)",
                nullable: false,
                defaultValue: new Guid("00000000-0000-0000-0000-000000000000"),
                comment: "班级Id",
                collation: "ascii_general_ci");
            migrationBuilder.DropColumn(
                name: "HowManyTimes",
                table: "ParentChildTasksRecord");
        }
    }
}
